<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    const obj = {
        id: 0,
        name: '小红',
        age: 33,
        school: '理工'
    } 
    console.log(Object.keys(obj)); //返回包含对象键名的数组；
    console.log(Object.values(obj)); //返回包含对象键值的数组；
    console.log(Object.entries(obj)); //返回包含对象键名和键值的数组。
</script>
</html>